package io.gatling.extensions.common.check.string

import io.gatling.commons.validation._
import io.gatling.core.check._

// 定义提取器（从 P 中提取数据）
object StringExtractors {

  // 字符串提取器
  private[check] val stringExtractor: FindExtractor[String, String] = new FindExtractor[String, String](
    "string",
    Some(_).success
  )

  // 示例：字符串长度提取器
  private[check] val stringLengthExtractor: FindExtractor[String, Int] = new FindExtractor[String, Int](
    "stringLength",
    prepared => Some(prepared.length).success
  )
}
